package com.bayihouse.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bayihouse.model.entity.Room;
import com.bayihouse.model.request.room.RoomQueryRequest;
import com.bayihouse.model.vo.RoomVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【room】的数据库操作Service
* @createDate 2024-09-17 10:28:03
*/
public interface RoomService extends IService<Room> {

    RoomVO getRoomVO(Room room);

    QueryWrapper<Room> getQueryWrapper(RoomQueryRequest roomQueryRequest);

    List<RoomVO> getRoomVOList(List<Room> records);


    Long getByUnitIdAndAddress(Long unitId, String address, String roomType);

    Long getComunityIdAndAddress(Long communityId,String address, String roomType);
}
